package com.zy.dp.prototype.example2;

public class PersonalOrder implements OrderApi
{

	private String customeName;
	private String productId;
	private int orderProductNum = 0;

	public String getCustomeName()
	{
		return customeName;
	}

	public void setCustomeName(String customeName)
	{
		this.customeName = customeName;
	}

	public String getProductId()
	{
		return productId;
	}

	public void setProductId(String productId)
	{
		this.productId = productId;
	}

	@Override
	public int getOrderProductNum()
	{
		return this.orderProductNum;
	}

	@Override
	public void setOrderProductNum(int num)
	{
		this.orderProductNum = num;

	}

	@Override
	public String toString()
	{

		return "本个人订单的订购人是=" + this.customeName + ",订购产品是=" + this.productId
				+ ",订购数量为=" + this.orderProductNum;

	}

	@Override
	public OrderApi cloneOrder()
	{
		PersonalOrder order = new PersonalOrder();
		order.setCustomeName(this.customeName);
		order.setProductId(this.productId);
		order.setOrderProductNum(this.orderProductNum);
		return order;

	}

}
